import request from './request.js'

const maintenanceIndex = {
  // 福利购列表
  getBuyDiscountsList(data) {
    return request.post('/api/client/core/BuyDiscounts/GetBuyDiscountsList', data)
  },
  // 福利购详情
  getBuyDiscountsAllDetailsById(data) {
	  return request.post('/api/client/core/BuyDiscounts/GetBuyDiscountsAllDetailsById', data)
  },
  // 提交订单
  addBuyDiscountsOrders(data) {
	  return request.post('/api/client/core/BuyDiscounts/AddBuyDiscountsOrders', data)
  },
  // 支付福利购订单
  payBuyDiscountsOrder(data) {
	  return request.post('/api/client/core/BuyDiscounts/PayBuyDiscountsOrder', data)
  },
  // 验证订单是否已经支付成功
  checkOrderBuyDiscountsPaid(data) {
	  return request.post('/api/client/core/BuyDiscounts/CheckOrderBuyDiscountsPaid', data)
  },
  // 搜索热词
  getHotWordsResponses(data) {
	  return request.get('/api/client/core/Search/GetHotWordsResponses', data)
  },
  //通过vin获取车辆信息
  getCarInfoByVin(data) {
	  return request.post('/business/OrderArrive/GetCarInfoByVin', data)
  },
  //优惠卷绑定爱车
  couponBindingCar(data) {
	  return request.post('/api/common/core/CouponCommon/CouponBindingCar', data)
  },
  //福利购订单id查询优惠卷
  getCouponIdByBuyDiscountsOrderId(data) {
	  return request.post('/api/common/core/CouponCommon/GetCouponIdByBuyDiscountsOrderId', data)
  },
  // 获取保养分类及商品
  GetMaintenanceTypeAndGoodsList(data = {}) {
    return request.post('/api/client/core/MaintenanceGoods/GetMaintenanceTypeAndGoodsList', data)
  },
  // 根据分类ID获取所有商品
  GetAllMaintenanceGoodsByTypeId(data = {}) {
    return request.post('/api/client/core/MaintenanceGoods/GetAllMaintenanceGoodsByTypeId', data)
  },
  // 根据选中商品得到实际所需的商品请求对象
  GetSelectedMaintenanceGoods(data) {
    return request.post('/api/client/core/MaintenanceGoods/GetSelectedMaintenanceGoods', data)
  }
}

export default maintenanceIndex